<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var str = '';
        var hang = prompt('几行猩猩');
        var lie = prompt('几列猩猩');
        for (var i = 1;i<=hang;i++){
            for (var j = 1;j<=lie;j++){
                str += '★';
            }
            str = str + '\n';
        }
        console.log(str)
    </script>
</head>
<body>

</body>
</html>